
using Company.Core.IOC;
using Shell.Events;

namespace Shell
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            AppStartup appStartup = new AppStartup();
            appStartup.Run();

            var frm2 = new Form2();
            frm2.Show();

            PrismProvider.EventAggregator.GetEvent<TestEvent>().Subscribe(e =>
            {
                button1.Text = e;
            });
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var a = PrismProvider.ModuleManager;
            MessageBox.Show(a.ToString());
        }
    }
}
